import com.nokia.meego 1.1
import QtQuick 1.1

Page {
	orientationLock: PageOrientation.LockPortrait

	Flickable {
		id: flickable
		anchors {
			top: pageHeader.bottom
			left: parent.left
			right: parent.right
			bottom: parent.bottom
		}

		contentWidth: parent.width
		contentHeight: aboutText.height

		Text {
			id: aboutText
			anchors {
				left: parent.left
				right: parent.right
				margins: UiConstants.DefaultMargin
			}
			font.pixelSize: 24
			wrapMode: Text.WrapAtWordBoundaryOrAnywhere
			textFormat: Text.RichText

            text: qsTr("<h1>Buienradar v1.1.0</h1>" +
				  "<p>Copyright © 2012 - 2013 <a href='http://randysimons.nl/'>Randy Simons</a></p>" +
				  "<p>Afbeeldingen en data: <a href='http://buienradar.nl/'><strong>http://buienradar.nl/<strong></a></p>" +
				  "<p>Dit programma noch de auteur zijn gelieerd aan de website buienradar.nl.</p>" +
				  "<p>Geocoding: <a href='http://bag42.nl/'>http://bag42.nl/</a></p>" +
				  "<p>Broncode beschikbaar op <a href='https://projects.developer.nokia.com/buienradar'>https://projects.developer.nokia.com/buienradar</a></p>" +
				  "<p>This program is free software: you can redistribute it and/or modify " +
				  "it under the terms of the GNU General Public License as published by " +
				  "the Free Software Foundation, either version 3 of the License, or " +
				  "(at your option) any later version.</p>" +

				  "<p>This program is distributed in the hope that it will be useful, " +
				  "but WITHOUT ANY WARRANTY; without even the implied warranty of " +
				  "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the " +
				  "GNU General Public License for more details.</p>" +

				  "<p>You should have received a copy of the GNU General Public License " +
                  "along with this program.  If not, see <a href=\"http://www.gnu.org/licenses/\">http://www.gnu.org/licenses/</a>.")

			onLinkActivated : Qt.openUrlExternally(link);
		}
	}

	ScrollDecorator {
		flickableItem: flickable
	}

	PageHeader {
		id: pageHeader
        text: qsTr("Over Buienradar")
	}

	tools: ToolBarLayout {
		id: toolBar
		ToolIcon {
			iconId: "toolbar-back"
			onClicked: pageStack.pop()
		}
	}
}
